<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>预览许可证书</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
			.titleCss{
				font-size:200%;
				text-align:center;
				font-weight: bold;
			}
			.titile1Css{
				font-size:350%;
				text-align:center;
				font-weight: bold;
			}
			.justifyCss{
				width:20%;
				text-align:justify;
				text-justify:distribute-all-lines;
				text-align-last:justify;
			}
			.tdCss{
				font-size:130%;
				font-weight: bold;
			}
			.tdcontentCss{
				font-size:200%;
				font-weight: bold;
			}
			.inputNoborder {
			    FONT-SIZE: 25px;
			    FONT-FAMILY: 宋体;
			    BORDER-RIGHT: #FFFFFF 1px solid;
			    BORDER-TOP: #FFFFFF 1px solid;
			    BORDER-LEFT: #FFFFFF 1px solid;
			    BORDER-BOTTOM: #FFFFFF 1px solid;
			}
				.inputNoborder2 {
			    FONT-SIZE: 18px;
			    FONT-FAMILY: 宋体;
			    BORDER-RIGHT: #FFFFFF 1px solid;
			    BORDER-TOP: #FFFFFF 1px solid;
			    BORDER-LEFT: #FFFFFF 1px solid;
			    BORDER-BOTTOM: #FFFFFF 1px solid;
			}
		</style>
		
		<script type='text/javascript' src="${ctx}/dwr/engine.js"></script>
		<script type='text/javascript' src="${ctx}/dwr/util.js"></script>
		<script type='text/javascript' src="${ctx}/dwr/interface/FileUploadCntl.js"></script>
		<script src="${ctx}/gzcgwsp/resources/js/YwUtil.js" type="text/javascript"></script>
		<script src="${ctx}/gzcgwsp/resources/js/YwEnterprise.js" type="text/javascript"></script>
		<script src="${ctx}/resources/js/jquery/jquery.js" type="text/javascript"></script>
		<script src="${ctx}/gzcgwsp/shljcz/js/csshljcz.js" type="text/javascript"></script>
		<script src="${ctx}/gzcgwsp/resources/js/YwUtil.js" type="text/javascript"></script>
		<script type="text/javascript">
			window.onload=function(){
				var activityName=document.getElementById("activityName").value;
				//只有最后一个环节"电子盖章"才可以打印,其他环节只可以保存
				if(activityName.indexOf("czdjgz")>=0){
					document.getElementById("printButton").style.display="";
					document.getElementById("saveButton").style.display="none";
				}else{
					document.getElementById("printButton").style.display="none";
					document.getElementById("saveButton").style.display="";
				}
			}
	       function printXkz(){
                 var url="${ctx}/shlj-ys!printXkz.action?id="+${id};
                 window.open(url);
               // YwUtil.openWin({url: url, w: 1000, h: 800});
                
           }
			function save(){
					var params = $("#shljYsForm").serialize();
					var url="${ctx}/shlj-ys!saveXkz.action";
					$.ajax({
						url : url,
						type : "post",
						dataType : "html",
						data : params,
						success : function(msg) {
							if(msg=="success"){
								alert('保存成功!');
									
							}else{
								alert('保存失败！');
							}
							
						},
						error:function() {
							alert("添加失败！请刷新重试！");
						}
					});
			
			
			}

</script>
	</head>
	<body>
		<form action="" method="POST" id="shljYsForm">
		<input type="hidden" name="id" value="${id}"/>
		<input type="hidden" id="activityName" value="${hjmc}"/>
		<table width="1024" border=0 align="center">
			<tr>
				<td class="titleCss" colspan="3">城&nbsp;市&nbsp;生&nbsp;活&nbsp;垃&nbsp;圾&nbsp;经&nbsp;营&nbsp;性&nbsp;清&nbsp;扫&nbsp;、&nbsp;收&nbsp;集&nbsp;、&nbsp;运&nbsp;输&nbsp;服&nbsp;务</td>
				
			</tr>
	
			<tr>
				<td  class="titleCss" colspan="3"> 许&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;可&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;证</td>
			</tr>
			<tr>
			<td colspan="" class="titleCss"></td>
			<td class="tdcontentCss" style="align:left"  colspan="2">
			${sqdw}(公司)：
			</td>
            </tr>
			<tr>
				<td class="tdcontentCss" colspan="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;根据《城市生活垃圾管理办法》&nbsp;(建设部令第157号)的有关<br>
				规定，经审查，你单位符合规定的许可条件，特发此证。
				</td>
			</tr>
			<tr height="80">
			 <td colspan="3">&nbsp;</td>
			</tr>
			
			<tr>
				<td class="tdCss" style="width:12%">许可内容：</td>
				<td class="tdCss" colspan="2" style="width:50%"> <input name="xkContent" value="${xkContent}" class="inputNoborder" style="width:100%;"/></td>
			</tr>
			<!-- 
			<tr>
				<td class="tdCss">项目名称：</td>
				<td class="tdCss" colspan="2"><input name="projectName"  readonly="readonly"  value="${projectName}" class="inputNoborder" style="width:100%;"/></td>
			</tr>
			 -->
			<tr>
				<td class="tdCss">证书编号：</td>
				<td class="tdCss" colspan="">粤建环证I<input name="zsbh"  readonly="readonly" value="${zsbh}" class="inputNoborder" style="width:60%;"/></td>
				<td class="tdCss" style="width:50%">发证机关（盖章）<input type="text" class="inputNoborder2" name="fzjg"  value="${fzjg}"></td>
			
			</tr>
		<tr>
			<td class="tdCss" style="width:10%">有效期：</td>
				
				<td class="tdCss" style="width:45%">
				<input name="startYear" value="${startYear}"  readonly="readonly" maxlength="4" class="inputNoborder2" style="width:40px;"/>
                  年
                <input name="startMonth" value="${startMonth}"  readonly="readonly" maxlength="2"  class="inputNoborder2" style="width:25px;"/>
                  月
                <input name="startDay" value="${startDay}"   readonly="readonly" maxlength="2" class="inputNoborder2" style="width:20px;"/>
				日至
				<input name="endYear" value="${endYear}"  readonly="readonly" maxlength="4"  class="inputNoborder2" style="width:40px;"/>
				年
				<input name="endMonth" value="${endMonth}" readonly="readonly"  maxlength="2" class="inputNoborder2" style="width:25px;"/>
				月
				<input name="endDay" value="${endDay}"  readonly="readonly" maxlength="2"  class="inputNoborder2" style="width:20px;"/>
				日</td>
				<td class="tdCss" style="width:45%">
				<input name="fzYear" value="${fzYear}"  readonly="readonly" maxlength="4" class="inputNoborder2" style="width:40px;"/>
				年
				<input name="fzMonth" value="${fzMonth}" readonly="readonly"  maxlength="2"  class="inputNoborder2" style="width:25px;"/>
				月
				<input name="fzDay" value="${fzDay}"  readonly="readonly" maxlength="2" class="inputNoborder2" style="width:25px;"/>
				日
				</td>
			</tr>
		
				<tr>
				<td colspan="2"></td>
				<td colspan="" style="text-align:left;font-size:130%;font-weight: bold;">监督电话：
				<input type="text" class="inputNoborder2" name="jdTel" value="${jdTel }" maxlength="15" />
				</td>
			</tr>
		
			<tr>
				<td colspan="2"></td>
				<td colspan="" style="text-align:left;font-size:130%;font-weight: bold;">广东省住房和城乡建设厅统一印制</td>
			</tr>
		
			<tr>
				<td colspan="3" style="text-align:center;">
					<input id="saveButton" type="button" value="保&nbsp;&nbsp;存" style="width:100px;" onclick="save()"/>
					<input id="printButton" type="button" value="打&nbsp;&nbsp;印" onclick="printXkz();" style="width:100px;"/>
					<input type="button" value="关闭窗口" onclick="window.close();" style="width:100px;"/>
				</td>
			</tr>
		</table>
		</form>
	
	</body>
</html>